<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            width: 100%;
            height: 100vh;
            background: url('/static/home_background.png') no-repeat;
            background-size: cover;
            opacity: .75;
            display: flex;
        }
        #selections{
            margin: 100px auto;
            display: flex;
            color: white;
            height: 400px;
            width: 500px;
        }
        .btn{
            padding: 50px auto;
            text-align: center;
            line-height: 400px;
            height: 100%;
            flex: 1;
            border-radius: 20px;
            transition: all .5s;
        }
        .btn:nth-child(1){
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
            background: linear-gradient(to right, rgba(109, 147, 158, 0.98), rgba(121, 154, 163, 0.98));
        }
        .btn:nth-child(2){
            border-top-right-radius: 20px;
            border-bottom-right-radius: 20px;
            background: linear-gradient(to right, rgba(109, 147, 158, 0.98), rgba(121, 154, 163, 0.98));
        }
        .btn:nth-child(1):hover{
            transform: scale(1.1)
        }
        .btn:nth-child(2):hover{
            transform: scale(1.1)
        }
    </style>    
</head>
<body >
    <div id="selections">
        <div class="btn" id="btn" onclick="func(1)">
            <h1>人机模式</h1>
        </div>
        <div class="btn" id="btn" onclick="func(2)">
            <h1>双人模式</h1>
        </div>
    </div>
</body>
<script>
    function func(flag) {
        if(flag==1){
            alert("暂未开放")
        }
        else{
            location.href="/game"
        }
    }
</script>
</html>